<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

</body>
<script>
    var a = ['6203\6204-ZRS*', 'UNKskf 5', '602|6203|6205%#-56'];
    var b = ['6206\6206-ZRS*', 'UNK"skf 5', '602|6203|6205%#-56'];
    c = String(a);
    d = String(b);
    var str = /[\',"#%*()|-\s]/g;
    c = c.replace(str, "");
    d = d.replace(str, "");
    console.log(a);
    console.log(c);
    console.log(d);
    var e = new Set(a);
    var f = new Set(b);
    var union = new Set([...e, ...f]);
    console.log(union);
</script>

</html>